<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"/>
  <meta content=always name=referrer>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <meta name="format-detection" content="telephone=no"/>
  <meta name="keywords" content=""/>
  <meta name="description" content=""/>
  <link rel="stylesheet" type="text/css" href="__STATIC__/css/bootstrap.min.css">
  <link rel="stylesheet" type="text/css" href="__STATIC__/css/swiper.min.css">
  <link rel="stylesheet" type="text/css" href="__STATIC__/css/public.css">
  <link rel="stylesheet" type="text/css" href="__STATIC__/css/base.css">
  <script src="__STATIC__/js/jquery-1.11.3.min.js"></script>
  <script src="__STATIC__/layer/layer.js"></script>
  <script src="__STATIC__/js/Validform_v5.3.2_min.js"></script>
  <title>找回密码</title>
</head>
<body style="background: #FAFAFA;">
<div class="wrap">
  <div class="find_pass">
    <div class="logo">
      <a href="/"><img src="__STATIC__/img/logo_ishop.png" style="width: 150px;height:80px;"></a>
    </div>
    <div class="find_content">
      <div class="find_title">找回密码</div>
      <ul class="list_find_cate">
        <li>01/<span>输入登录名</span></li>
        <li>02/<span>验证信息</span></li>
        <li class="active">03/<span>重置密码</span></li>
      </ul>
      <div class="find_step">
        <div class="success">
          <img src="__STATIC__/img/icon40.png">恭喜你！验证成功，请重置密码并妥善保管：
        </div>
        <form action="" method="post" id="form">
          <div class="input-group">
            <label class="label_con">新密码：</label>
            <input type="password" placeholder="" class="text text_1" name="pwd" datatype="s6-18" nullmsg="密码不能为空" errormsg="密码格式不正确">
          </div>
          <div class="input-group">
            <label class="label_con">确认密码：</label>
            <input type="password" placeholder="" class="text text_1" name="upwd" datatype="s6-18" nullmsg="密码不能为空" errormsg="密码格式不正确">
          </div>
          <div class="input-group">
            <input type="submit" class="submit" value="完成" id="sub">
          </div>
        </form>

      </div>
      <div class="hotline">上述方法无法找回? 红红来帮助你： 拨打客服热线：<span>4005-5447865252</span></div>

    </div>
  </div>
</div>
</body>
<script>
  $(function () {
    $.Tipmsg.r = null;
    $.Tipmsg.p = null;
    $("#form").Validform({
      tiptype: function (msg) {
        layer.msg(msg);
      },
      btnSubmit: '#sub',
      tipSweep: true,
      // ajax 提交
      ajaxPost: true,
      callback: function (t) {
        if (t.code == 200) {
          layer.msg('密码修改成功！');
//          layer.load(3);
          setTimeout(function () {
            layer.closeAll('loading');
            // 跳转页面
            location.href = "{:url('shop/login/index')}";
          }, 3000);

        } else {
          layer.msg(t.message);
        }

      }
    });
  });
</script>
</html>